package com.finance.console.entity;

public class User {
    // 与数据库user表字段对应
    private Integer id;         // 对应表中id（主键）
    private String username;    // 对应表中username
    private String password;    // 对应表中password
    private String realName;    // 对应表中real_name
    private String role;        // 对应表中role
    private String createTime;  // 对应表中create_time
    private Integer status;     // 对应表中status

    // 无参构造
    public User() {}

    // Getter和Setter（方法名与属性对应，如getId()对应id）
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName == null ? "" : realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}